#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# -- Create paraview file
paraFoam -builtin -touch

# -- Create mesh
runApplication blockMesh

# -- Set initial conditions
runApplication setFields

# -- run the calc
runApplication $(getApplication)

# -- Sample
runApplication postProcess -func sampleDict -latestTime -time '0,5e-5,0.0001'

# -- Create graphs
(cd validation && ./createGraphs)

# ----------------------------------------------------------------- end-of-file
